<template>
  <div class="container">
    <global-header :user="currentUser"></global-header>
    <column-list :list="list"></column-list>
  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue'
import 'bootstrap/dist/css/bootstrap.min.css'
import ColumnList, { ColumnProps } from './components/ColumnList.vue'
import GlobalHeader, { UserProps } from '@/components/GlobalHeader.vue'
const currentUser: UserProps = {
  isLogin: true,
  name: 'Jan Son'
}
const testData: ColumnProps[] = [
  {
    id: 1,
    title: 'test1的专栏',
    avatar: 'https://pic2.zhimg.com/80/v2-f6b1f64a098b891b4ea1e3104b5b71f6_720w.png',
    description: '这是test1专栏，有端非常有意思的简介，可以更新一下'
  }, {
    id: 2,
    title: 'test2的专栏',
    avatar: 'https://pic2.zhimg.com/80/v2-f6b1f64a098b891b4ea1e3104b5b71f6_720w.png',
    description: '这是test2专栏，有端非常有意思的简介，可以更新一下'
  }, {
    id: 3,
    title: 'test3的专栏',
    // avatar: 'https://pic2.zhimg.com/80/v2-f6b1f64a098b891b4ea1e3104b5b71f6_720w.png',
    description: '这是test3专栏，有端非常有意思的简介，可以更新一下'
  }, {
    id: 4,
    title: 'test4的专栏',
    avatar: 'https://pic2.zhimg.com/80/v2-f6b1f64a098b891b4ea1e3104b5b71f6_720w.png',
    description: '这是test4专栏，有端非常有意思的简介，可以更新一下'
  }
]

export default defineComponent({
  name: 'App',
  components: {
    ColumnList,
    GlobalHeader
  },
  setup() {
    return {
      list: testData,
      currentUser
    }
  }
})
</script>

<style>
</style>
